package com.wjh.mirna.service.impl;

import com.wjh.mirna.dao.DiseaseDao;
import com.wjh.mirna.model.Disease;
import com.wjh.mirna.service.DiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DiseaseServiceImpl implements DiseaseService {
    @Autowired
    DiseaseDao diseaseDao;
    @Override
    public void insertDiseaseList(List<Disease> diseaseList) {
        diseaseDao.insertDiseaseList(diseaseList);
    }

    @Override
    public List<Disease> selectDisease() {
        List<Disease> diseases = diseaseDao.selectDisease();
        return diseases;
    }

    @Override
    public Disease selectByDname(String dname) {
        Disease disease = diseaseDao.selectByDname(dname);
        return disease;
    }
}
